// 商品属性
const AttrADD = 'AttrADD' //增
const AttrEDIT = 'AttrEDIT'//改
const AttrDEL = 'AttrDEL'//删
// 品牌管理
const BRAND_ADD = 'BRAND_ADD' //增
const BRAND_EDIT = 'BRAND_EDIT'//改
const BRAND_DEL = 'BRAND_DEL'//删
// 商品管理
const GOODS_ADD = 'GOODS_ADD' //增
const GOODS_EDIT = 'GOODS_EDIT'//改
const GOODS_DEL = 'GOODS_DEL'//删
const GOODS_SheL = 'GOODS_SheL'//删
// 商品标签
const LABEL_ADD = 'LABEL_ADD' //增
const LABEL_EDIT = 'LABEL_EDIT'//改
const LABEL_DEL = 'LABEL_DEL'//删
// 商品属性
export const addBtn = (obj) => {
  return { 'type': AttrADD, payload: obj }
};
export const EditBtn = (id, obj) => {
  return { 'type': AttrEDIT, id: id, payload: obj }
};
export const DelBtn = (id) => {
  return { 'type': AttrDEL, id: id }
};
// 品牌管理
export const BrandAddBtn = (obj) => {
  return { 'type': BRAND_ADD, payload: obj }
};
export const BrandEditBtn = (id, obj) => {
  return { 'type': BRAND_EDIT, id: id, payload: obj }
};
export const BrandDelBtn = (id) => {
  return { 'type': BRAND_DEL, id: id }
};

// 商品管理
export const GoodsAddBtn = (obj) => {
  return { 'type': GOODS_ADD, payload: obj }
};
export const GoodsEditBtn = (id, obj) => {
  return { 'type': GOODS_EDIT, id: id, payload: obj }
};
export const GoodsDelBtn = (id) => {
  return { 'type': GOODS_DEL, id: id }
};
export const GoodsSheLBtn = (id, tags) => {
  return { 'type': GOODS_SheL, id: id, tags: tags }
};

// 商品标签
export const LabelAddBtn = (obj) => {
  return { 'type': LABEL_ADD, payload: obj }
};
export const LabelEditBtn = (id, obj) => {
  return { 'type': LABEL_EDIT, id: id, payload: obj }
};
export const LabelDelBtn = (id) => {
  return { 'type': LABEL_DEL, id: id }
};



